

#include <stdio.h>

int sumOfLeftLeaves(struct TreeNode* root) 
{
	if (root == NULL)
		return 0;

	int sum = 0;
	
	if (root->left && root->left->left == NULL && root->left->right == NULL)
		sum += root->left->val;
	
	sum += sumOfLeftLeaves(root->left) + sumOfLeftLeaves(root->right);
	
	return sum;
}

bool isSameTree(struct TreeNode* p, struct TreeNode* q) {

	if (p == NULL && q != NULL)
		return false;
	
	if (p != NULL && q == NULL)
		return false;
		
	if (p == NULL && q == NULL)
			return true;
	
	if (p->val == q->val)
		return isSameTree(p->left, q->left) && isSameTree(p->right, q -> right);
	
	return false;
}

bool isSubtree(struct TreeNode* root, struct TreeNode* subroot) {
	if (root == NULL)
		return false;
	
	if (isSameTree(s, t))
		return true;
	
	return isSubtree(root->left, subroot) || isSubtree(root->right, subroot);
}


int main()
{


	return 0;
}